import { get, post } from "./http"

//注册
export const reqregister = (params) => post("/api/register", params)
//登录
export const reqlogin = (params) => post("/api/login", params)

//首页商品分类
export const reqgetindexgoods = () => get("/api/getindexgoods");
//新人专享
export const reqgetnew = () => get("/api/getnew");
//首页轮播
export const reqgetbanner = () => get("/api/getbanner");

//详情
export const reqgetgoodsinfo = (p) => get("/api/getgoodsinfo", p);


//分类
export const reqgetcate = () => get("/api/getcate");
//分类商品信息
export const reqgetgoods = (p) => get("/api/getgoods",p);


//购物车
// 增加
export const reqcartadd = (p) => post("/api/cartadd", p);
//删除
export const reqcartdelete = (p) => post("/api/cartdelete", p);
//修改
export const reqcartedit = (p) => post("/api/cartedit", p);
//列表
export const reqcartlist = (p) => get("/api/cartlist", p);

